Repository navigation
Build macOS Intel after merge instead of on pull requests - #141
Merged
Merged
Conversation
GitHub's macos-15-intel runners queue for 1-2 hours and dominate PR CI time. - ci.yml reads the build matrix from .github/build-targets.json; the changes job drops post_merge_only entries (x86_64-apple-darwin) on pull requests, pushes to main build all 8 targets - proof workflows exclude macos-15-intel on pull_request and keep it on push to main and workflow_dispatch; non-git-snapshot-proof gains a push trigger - release.yml unchanged - test_release_workflow checks the list against ALL_TARGETS and runs the jq filter for both events - OpenSpec change build-intel-mac-after-merge (installation-upgrade Release targets); archive the completed release-without-windows change, whose delta of the same requirement was already synced
Contributor
Author
|
PR CI evidence: the runs triggered by this PR schedule no
|
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
GitHub's macOS Intel runners (
macos-15-intel) queue for 1–2 hours, so thex86_64-apple-darwinbuild and the Intel legs of the native proof workflows dominate how long every pull request waits for CI. Everything else finishes in minutes.What moves where
mainworkflow_dispatchci.yml→ Build (platforms)x86_64-apple-darwin)plugin-bootstrap-environment.ymlplugin-native-launcher.ymlplugin-package-copy.ymlplugin-admission-proof.ymlmacos-15onlyplugin-confinement-proof.yml(native,macos-signing-candidate,macos-signing-runtime)non-git-snapshot-proof.ymlpush: maintrigger, same paths)release.ymlplugin-confinement-proof.yml→macos-native-gapalready runs only onworkflow_dispatch, so it is untouched.How
ci.yml: the 8 build targets now live in one checked-in list,.github/build-targets.json(same order asrelease_assets.ALL_TARGETS). Thechangesjob emits it as theplatformsoutput, dropping entries markedpost_merge_only(onlyx86_64-apple-darwin) when the event ispull_request;platformsusesinclude: ${{ fromJSON(needs.changes.outputs.platforms) }}. (A staticexcludecannot remove aninclude-only entry, and a job-levelifcannot readmatrix, hence the generated matrix.)os: [...]matrices):exclude: - os: ${{ github.event_name == 'pull_request' && 'macos-15-intel' || 'none' }}. Partial-match exclude also drops everyruntimecombination of the Intel runner.Coverage
Nothing is dropped: every Intel job still runs on each push to
main, so a target or proof that fails only on Intel is found after merge and still before any tag; the release workflow builds Intel exactly as before.Spec
New OpenSpec change
build-intel-mac-after-mergemodifiesinstallation-upgrade→ Release targets: every release target exceptx86_64-apple-darwinbuilds on each pull request; every release target, Intel included, builds on each push tomain. Synced intoopenspec/specs/installation-upgrade/spec.mdwith a new scenario. The completedrelease-without-windowschange, whose delta of the same requirement was already synced, is archived (--skip-specs) so its stale MODIFIED block no longer conflicts.CONTRIBUTING.md→ What CI checks describes the split.Tests
scripts/tests/test_release_workflow.py:release_assets.ALL_TARGETSandplatformsbuilds from it;x86_64-apple-darwinispost_merge_only;jqfilter:pushyields all 8 targets,pull_requestyields all butx86_64-apple-darwin(fails if the filter is weakened — checked locally).Local:
actionlint(only the two pre-existing shellcheck findings that also exist onmain),python3 -m unittest discover -s scripts/tests,openspec validate --all --strict(111 passed),spec_lint.py(0 errors),spec_inventory.py --check(ROADMAP unchanged).PR CI evidence
This PR touches every affected workflow, so they all run on it; see the comment below for the job list showing no
macos-15-intel/x86_64-apple-darwinjobs were scheduled.